void StatusBarManager::setupStatusWidgets()
{
    // 版本信息容器（最左侧）
    m_versionWidget = new QWidget();
    QHBoxLayout* versionLayout = new QHBoxLayout(m_versionWidget);
    versionLayout->setContentsMargins(8, 4, 8, 4);
    versionLayout->setSpacing(6);

    // 版本信息标签 - 显示当前版本或升级信息
    m_versionLabel = new QLabel();
    m_versionLabel->setText(LimeReader::AppVersion::getVersionWithPrefix());  // 初始显示当前版本
    m_versionLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
    m_versionLabel->setStyleSheet(
        "QLabel { "
        "    color: #8E8E93; "  // 平时灰色
        "    font-size: 12px; "
        "    font-weight: 500; "
        "    padding: 2px 6px; "
        "    background-color: rgba(142, 142, 147, 0.1); "
        "    border-radius: 4px; "
        "}"
    );

    // 更新图标按钮（初始隐藏）
    m_updateIconButton = new QPushButton();
    m_updateIconButton->setFixedSize(16, 16);
    m_updateIconButton->setVisible(false);  // 初始隐藏
    m_updateIconButton->setIcon(createUpdateIcon());
    m_updateIconButton->setIconSize(QSize(12, 12));
    m_updateIconButton->setStyleSheet(
        "QPushButton { "
        "    border: none; "
        "    background: transparent; "
        "    border-radius: 2px; "
        "    padding: 2px; "
        "} "
        "QPushButton:hover { "
        "    background-color: rgba(0, 122, 255, 0.1); "
        "} "
        "QPushButton:pressed { "
        "    background-color: rgba(0, 122, 255, 0.2); "
        "}"
    );

    // 连接更新图标按钮点击信号
    connect(m_updateIconButton, &QPushButton::clicked, this, &StatusBarManager::onUpdateIconButtonClicked);

    versionLayout->addWidget(m_versionLabel);
    versionLayout->addWidget(m_updateIconButton);

    // 设置信息标签 - Apple风格
    m_settingsInfoLabel = new QLabel();
    m_settingsInfoLabel->setText("DPI: 150");
    m_settingsInfoLabel->setFixedWidth(100);  // 固定宽度
    m_settingsInfoLabel->setAlignment(Qt::AlignCenter);
    m_settingsInfoLabel->setStyleSheet(
        "QLabel { "
        "    color: #8E8E93; "  // Apple Secondary Label
        "    font-size: 12px; "
        "    font-weight: 400; "
        "    padding: 2px 6px; "
        "    background-color: rgba(142, 142, 147, 0.1); "
        "    border-radius: 4px; "
        "}"
    );

    // 缓存信息标签 - Apple风格，增加宽度
    m_cacheInfoLabel = new QLabel();
    m_cacheInfoLabel->setText("缓存: 0 MB");
    m_cacheInfoLabel->setFixedWidth(140);   // 增加宽度以显示更多缓存信息
    m_cacheInfoLabel->setAlignment(Qt::AlignCenter);
    m_cacheInfoLabel->setStyleSheet(
        "QLabel { "
        "    color: #8E8E93; "  // Apple Secondary Label
        "    font-size: 12px; "
        "    font-weight: 400; "
        "    padding: 2px 8px; "  // 增加内边距
        "    background-color: rgba(142, 142, 147, 0.1); "
        "    border-radius: 4px; "
        "}"
    );

    // 系统状态标签
    m_systemStatusLabel = new QLabel();
    m_systemStatusLabel->setText(getSystemInfo());
    m_systemStatusLabel->setFixedWidth(120);   // 增加宽度以显示系统信息
    m_systemStatusLabel->setAlignment(Qt::AlignCenter);
    m_systemStatusLabel->setStyleSheet(
        "QLabel { "
        "    color: #8E8E93; "  // Apple Secondary Label
        "    font-size: 11px; "
        "    font-weight: 400; "
        "    padding: 2px 6px; "
        "    background-color: rgba(142, 142, 147, 0.1); "
        "    border-radius: 4px; "
        "}"
    );

    // 创建切换按钮 - Apple风格设计
    m_toggleFileListButton = new QPushButton();
    m_toggleFileListButton->setFixedSize(20, 20);
    m_toggleFileListButton->setIcon(createSplitPanelIcon(true));  // 左侧激活的图标
    m_toggleFileListButton->setToolTip("切换文件列表面板");
    m_toggleFileListButton->setStyleSheet(
        "QPushButton { "
        "    border: none; "
        "    background: transparent; "
        "    border-radius: 4px; "
        "    padding: 2px; "
        "} "
        "QPushButton:hover { "
        "    background-color: rgba(0, 122, 255, 0.1); "  // Apple Blue with transparency
        "} "
        "QPushButton:pressed { "
        "    background-color: rgba(0, 122, 255, 0.2); "
        "}"
    );

    m_togglePreviewButton = new QPushButton();
    m_togglePreviewButton->setFixedSize(20, 20);
    m_togglePreviewButton->setIcon(createSplitPanelIcon(false)); // 右侧激活的图标
    m_togglePreviewButton->setToolTip("切换预览面板");
    m_togglePreviewButton->setStyleSheet(
        "QPushButton { "
        "    border: none; "
        "    background: transparent; "
        "    border-radius: 4px; "
        "    padding: 2px; "
        "} "
        "QPushButton:hover { "
        "    background-color: rgba(0, 122, 255, 0.1); "  // Apple Blue with transparency
        "} "
        "QPushButton:pressed { "
        "    background-color: rgba(0, 122, 255, 0.2); "
        "}"
    );

    // 连接切换按钮信号
    connect(m_toggleFileListButton, &QPushButton::clicked, this, &StatusBarManager::onToggleFileListClicked);
    connect(m_togglePreviewButton, &QPushButton::clicked, this, &StatusBarManager::onTogglePreviewClicked);
}